<template> 
  <div class="layout">
   <router-view></router-view>
    <van-tabbar v-model="active" route>
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="cart">分类</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="menu">购物车</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active:''
    }
  },
};
</script>